<template>
  <mt-header :title="this.$route.meta.title">
    <span slot="left"  @click="back">
      <slot name="back"></slot>
    </span>
    <slot name="more" slot="right"></slot>
  </mt-header>
</template>

<script>
export default {
  data() {
    return {};
  },

  //计算属性，会监听依赖属性值随之变化
  computed: {},

  //状态监听
  watch: {},

  //过滤器
  filters: {},

  //方法
  methods: {
    back(){
      this.$router.go(-1)
    }
  },

  //组件
  components: {},

  //生命周期 - 实例完成
  created() {},

  //生命周期 - 挂载完成（可以访问DOM元素）
  mounted() {},
};
</script>

<style lang="scss" scoped>
.mint-header{
  height: 50px;
  font-size: 16px;
}
</style>